import React from 'react'
import {data as menuData} from '../config/menu'
import {Link} from 'react-router-dom'
import './style/home.scss'

function Home() {
    return (
        <div className='p-home'>
            <h2>欢迎访问！</h2>
            <ul>
                {menuData.map(item => 
                <li key={item.path}>
                    <Link to={item.path}>{item.text}</Link>
                </li>)}
            </ul>
        </div>
    )
}

export default Home
